package com.bw.service.impl;

import com.bw.been.Hz;
import com.bw.mapper.HzMapper;
import com.bw.service.HzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class HzServiceImpl implements HzService {

    @Autowired
    HzMapper hzMapper;

    @Override
    public int add(Hz hz) {
        return hzMapper.add(hz);
    }

    @Override
    public int adds(Hz[] hzs) {
        return hzMapper.adds(hzs);
    }

    @Override
    public int del(Integer hid) {
        return hzMapper.del(hid);
    }

    @Override
    public int dels(int[] ids) {
        return hzMapper.dels(ids);
    }

    @Override
    public List<Hz> getList(Map<String, Object> map) {
        return hzMapper.getList(map);
    }
}
